package demo04;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/10/31 15:23
 */
public class Test {
    public static void main(String[] args) {
        Card card = new Card(0);

        Boy boy = new Boy(card);
        Girl girl = new Girl(card);

        Thread b = new Thread(boy, "男孩");
        Thread g = new Thread(girl, "女孩");

        b.start();
        g.start();
    }
}
